cmake_minimum_required(VERSION 3.10)

project(WindowsSerial)

set(CMAKE_GENERATOR "MinGW Makefiles")
set(CMAKE_CXX_COMPILER "g++")

add_library(mysharedlib SHARED ConnectSerialPort.cpp)

add_executable(Test Test.cpp)

target_link_libraries(Test mysharedlib)